package com.org.web.handle.trans.dao;

import com.org.web.handle.vo.LocalTransVo;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LocalTransMapper {

    Integer insertLocalTrans(List<LocalTransVo> list);

    @Select("SELECT t.trans_id,MIN(t.sort) FROM tb_local_trans t where t.state = 0 and t.fail_count < 3 GROUP BY t.trans_id")
    List<Map<String,Object>> getUnDoTask();

}
